package com.can.Demo01;

public class TestAvailableProcessors获取CPU核数 {

    public static void main(String[] args) {
        //获取CPU的核数，
        //CPU 密集型，IO密集型
        System.out.println(Runtime.getRuntime().availableProcessors());
    }
}
